<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!-- 引入标签库-->
<%@ include file="/pages/inc/taglibs.jsp" %>
<%@ taglib uri="c-rt" prefix="c-rt" %>
<c-rt:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>错误页面</title>
<link rel="stylesheet" type="text/css" href="${path}/styles/error.css" />
</head>
<body>
	<!-- 代码 开始 -->
	<div id="msgBody">
	<script type="text/javascript">
/* //因为出错页面可能嵌套在框架里面，所以将页面整个刷新为出错页面
if(parent != self){  //存在层级嵌套
	if(!parent.errorShowCount){
		parent.errorShowCount = 0;
	}
	if(parent.errorShowCount == 0){
		parent.errorMsg = document.getElementById('detailInfo').innerHTML; //保存出错信息
		parent.errorShowCount++ ;
		window.location = "/document/pages/jsp/commom/error.jsp";
	}else{
		document.getElementById('detailInfo').innerHTML = parent.errorMsg;
		parent.errorShowCount = 0 ;
	}
} */

function _viewDetail() {
	var a = document.getElementById('viewInfo');
	var r = document.getElementById('detailInfo');
	if(r.style.display=="block") {
		r.style.display="none";
		a.innerHTML = "查看详细信息";
	} else {
		r.style.display="block";
		a.innerHTML = "隐藏详细信息";
	}
}
</script>
		<div id="msgTitle"><div id="icon"></div><span>昆明轨道交通有限公司办公系统</span></div>
		<div id="msgContent">
			<table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td width="680" height="100" align="center">
						非常抱歉，程序发生了一个错误。请<!-- <a href="javaScript:window.location='/synergy';">返回</a> -->重试，或联系系统管理员。
						<BR>服务电话:
					</td>
				</tr>
			</table>
		</div>
		<div align="right">
			<span><a id="viewInfo" href="javascript:_viewDetail();">查看详细信息</a></span>
		</div>
	</div>
	<div id="detailInfo" style="display:none;width: 900px;margin: 0 auto;">
		<div>
			<hr>
			<c:if test="${!empty errorDescription}">
			<p>异常信息：${errorDescription}</p>
			</c:if>
			
			<c:if test="${!empty errorCode}">
			<p>异常代码：${errorCode}</p>
			</c:if>
		</div>
		
		<div id="more" class="block">
			<h5>详细异常信息：</h5>
			<c:if test="${!empty exception}">
				${exception}
			</c:if>
			<c:if test="${empty exception}">
				无详细信息
			</c:if>
		</div>
	</div>
<!-- 代码 结束 -->
</body>
</html>